package com.aliyun.messagemgt.common.dto.foura;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("角色信息DTO")
public class FouraRoleDTO {

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("角色编码")
    private String roleCode;

    @ApiModelProperty("角色名称")
    private String roleName;

    @ApiModelProperty("角色类型")
    private Integer roleType;

    @ApiModelProperty("角色描述")
    private String roleDesc;

    @ApiModelProperty("继承的公共角色id")
    private Long inheritedPublicRoleId;

    @ApiModelProperty("用户个数")
    private Integer userCount;

    @ApiModelProperty("创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreated;

    @ApiModelProperty("创建人")
    private String creatorName;

    @ApiModelProperty("更新人")
    private String modifierName;

    @ApiModelProperty("更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtModified;

}
